import svgCaptcha from 'svg-captcha';

class PublicController {
  constructor() {}

  async getSvgCaptcha(ctx) {
    const captcha = svgCaptcha.create({
      height: 32,
      width: 100,
      fontSize: 32
    });
    ctx.body = {
      data: captcha.data,
      code: 200
    };
  }
}

export default new PublicController();